package com.xuecheng.search.client;

import com.xuecheng.framework.client.XcServiceList;
import com.xuecheng.framework.domain.course.CoursePub;
import com.xuecheng.framework.domain.course.TeachplanMedia;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;

import java.util.List;

@FeignClient(value = XcServiceList.XC_SERVICE_MANAGE_COURSE)
public interface CourseClient {

    @GetMapping("/course/coursepub/list")
    public List<CoursePub> findCoursePubList();

    @GetMapping("/course/teachplanMedia/list")
    public List<TeachplanMedia> findTeachplanMedias();

}
